package com.xspace.android.xafcommon.been;

import com.xspace.android.imcommon.entity.MucRoomBean;
import com.xspace.android.xafcommon.view.tree.bean.TreeNodeId;
import com.xspace.android.xafcommon.view.tree.bean.TreeNodeLabel;
import com.xspace.android.xafcommon.view.tree.bean.TreeNodePid;


import java.io.Serializable;

/**
 * 群聊的bean
 * @author Administrator
 *
 */
public class MucRoomBean1 implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -4967600092951686322L;
	@TreeNodeId
	public  String id;
	@TreeNodePid
	public  String parent_id;
	public  String create_time;
	/**
	 * 创建者
	 */
	public  String creater;
	public  String create_jid;
	@TreeNodeLabel
	public  String name;
	public  String room_id;
	public String getRoom_id() {
		return room_id;
	}
	public void setRoom_id(String room_id) {
		this.room_id = room_id;
	}
	public String getRoom_jid() {
		return room_jid;
	}
	public void setRoom_jid(String room_jid) {
		this.room_jid = room_jid;
	}
	public  String room_jid;
	public  String room_type;
	/**1机构群组 0个人群组3多人会话**/
	public  int group_belong;
	public  int msg_type;
	/**主要作用于多人会话0正在进行中 1已退出 2已结束**/
	public  int room_status;
	public  int isbelong;
	public int getIsbelong() {
		return isbelong;
	}
	public void setIsbelong(int isbelong) {
		this.isbelong = isbelong;
	}
	public  int  isleaf;
	public  int  usercount;
	public  int  unReadCount;;
	public  String room_profile;
	public  String notice;
	public  String lastContent;
	public  int lastContentType;
	/**是否有草稿内容**/
	public boolean isHasDraftContent;
	/**多人会话 发送者**/
	public String sender_name;
	public String userLogoList;
	public MucRoomBean1() {
		super();
	}
	public  String room_ico;
	/**
	 * 图片本地存储路径
	 */
	public  String imgPath;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public MucRoomBean1(String id, String parent_id, String room_name) {
		super();
		this.id = id;
		this.parent_id = parent_id;
		this.name = room_name;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public int getIsleaf() {
		return isleaf;
	}
	public void setIsleaf(int isleaf) {
		this.isleaf = isleaf;
	}
  public MucRoomBean toRoomBean() {
	  MucRoomBean mb=new MucRoomBean(id, parent_id, name);
	  mb.room_profile=room_profile;
      return mb;
}
	
}
